import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home'
import ActivityDetail from '@/pages/activityDetail'
import Seat from '@/pages/seat'
import RegisterForm from '@/pages/registerForm'
import Maps from '@/pages/maps'
import MyActivity from '@/pages/myActivity'
import SignUpCount from '@/pages/signUpCount'
import ActivitySign from '@/pages/activitySign'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:'/home',
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/activityDetail',
      name: 'ActivityDetail',
      component: ActivityDetail
    },
    {
      path: '/activitySign',
      name: 'ActivitySign',
      component: ActivitySign
    },
    {
      path: '/seat',
      name: 'Seat',
      component: Seat
    },
    {
      path: '/registerForm',
      name: 'RegisterForm',
      component: RegisterForm
    },
    {
      path: '/maps',
      name: 'Maps',
      component: Maps
    },
    {
      path: '/myActivity',
      name: 'MyActivity',
      component: MyActivity
    },
    {
      path: '/signUpCount',
      name: 'SignUpCount',
      component: SignUpCount
    }

  ]
})
